# @Time    : 2021/9/26 3:00
# @Author  : tzhhone
# @File    : html_parser.py
# @Explain : html解析器
from tzhhone_bsc import Bsc, TzhhoneBscErrors
from tzhhone_reptile.log import Log
from tzhhone_reptile.data_output import DataOutput


class HtmlParser(Log):
    def __init__(self, bsc):
        self.bsc = bsc

    def start(self):
        info = self.bsc.get_info()
        data_output = DataOutput(self.bsc.token)
        data_output.set_info(info)
        data_output.set_update_info(info)
        top50 = self.bsc.get_address_info()
        data_output.set_rank(top50)
